home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / Kubuntu 8.10 / kubuntu-8.10-desktop-i386.iso / casper / filesystem.squashfs / var / lib / dpkg / info / procps.postrm < prev    next >
Text File  |  2008-10-27  |  2KB  |  65 lines

  1. #!/bin/sh
  2. # postrm script for procps
  3. #
  4. # see: dh_installdeb(1)
  5.  
  6. set -e
  7.  
  8. # summary of how this script can be called:
  9. #        * <postrm> `remove'
  10. #        * <postrm> `purge'
  11. #        * <old-postrm> `upgrade' <new-version>
  12. #        * <new-postrm> `failed-upgrade' <old-version>
  13. #        * <new-postrm> `abort-install'
  14. #        * <new-postrm> `abort-install' <old-version>
  15. #        * <new-postrm> `abort-upgrade' <old-version>
  16. #        * <disappearer's-postrm> `disappear' <overwriter>
  17. #          <overwriter-version>
  18. # for details, see http://www.debian.org/doc/debian-policy/ or
  19. # the debian-policy package
  20.  
  21. restoreoldconffile()
  22. {
  23.   v=$1
  24.   f=/etc/init.d/procps
  25.   c=1:3.2.7-5
  26.   [ ! -e "$f" ] && return
  27.   dpkg --compare-versions "$1" ge "$c" || return
  28.   mv "$f" "$f.sh"
  29. }
  30.  
  31. case "$1" in
  32.     abort-upgrade)
  33.       restoreoldconffile
  34.     ;;
  35.     purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
  36.     ;;
  37.  
  38.     *)
  39.         echo "postrm called with unknown argument \`$1'" >&2
  40.         exit 1
  41.     ;;
  42. esac
  43.  
  44. # dh_installdeb will replace this with shell code automatically
  45. # generated by other debhelper scripts.
  46.  
  47. # Automatically added by dh_installmenu
  48. if [ -x "`which update-menus 2>/dev/null`" ]; then update-menus ; fi
  49. # End automatically added section
  50. # Automatically added by dh_installinit
  51. if [ "$1" = "purge" ] ; then
  52.     update-rc.d procps remove >/dev/null || exit $?
  53. fi
  54. # End automatically added section
  55. # Automatically added by dh_makeshlibs
  56. if [ "$1" = "remove" ]; then
  57.     ldconfig
  58. fi
  59. # End automatically added section
  60.  
  61.  
  62. exit 0
  63.  
  64.  
  65.